#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QWidget>
#include<QTcpSocket>
#include<QFileSystemModel>
#include<QTimer>
#include<QFont>
namespace Ui {
class MyWidget;
}

struct Msg{
    int flag;
    int len;
    char name[100];
};
class MyWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MyWidget(int width,QWidget *parent = 0);
    ~MyWidget();

public:
    QString m_ChoosePath;
    void dealBackIt(char*,int);
    QString dealLabelText(QFont,QString,int);
private slots:
    void on_pushButton_2_clicked();

    void on_pushButton_6_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_7_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_8_clicked();

    void on_pushButton_9_clicked();

    void on_pushButton_10_clicked();

    void on_pushButton_11_clicked();

    void on_pushButton_clicked();

    void on_pushButton_12_clicked();

    void on_pushButton_13_clicked();

    void on_pushButton_17_clicked();

    void on_pushButton_16_clicked();

    void on_pushButton_14_clicked();

    void on_pushButton_15_clicked();

    void on_pushButton_18_clicked();

    void on_pushButton_19_clicked();

    void on_pushButton_20_clicked();

    void on_pushButton_21_clicked();

    void on_pushButton_22_clicked();

    void on_pushButton_23_clicked();

    void on_pushButton_24_clicked();

    void on_pushButton_25_clicked();

private:
    Ui::MyWidget *ui;
    QFileSystemModel *model;
    QDir root_Dir;
    QDir current_Dir;
    QModelIndex index;
    QString m_nCurrentPath;
    QTcpSocket* pclient;
    bool isConnect;
    bool isReview;
    int flag;
    Msg file;
    QTimer* ptime;
    char ip[100];
    int width;
};

#endif // MYWIDGET_H
